package com.pgybook.front.action.vo;

import org.hibernate.validator.constraints.Email;

import javax.validation.constraints.AssertTrue;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

/**
 * Created with IntelliJ IDEA.
 * User: feeling
 * Date: 13-11-20
 * Time: 下午9:17
 */
public class RegVo {
    @NotNull
    @Email
    private String email;

    @NotNull
    @Pattern(regexp = "^[a-zA-Z]\\w{6,10}$")
    private String userPwd;

    @NotNull
    @Pattern(regexp = " ^[a-zA-Z0-9_u4e00-u9fa5]+$")
    private String userName;
    private String check;

    @AssertTrue
    private boolean agreeClause;

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getUserPwd() {
        return userPwd;
    }

    public void setUserPwd(String userPwd) {
        this.userPwd = userPwd;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getCheck() {
        return check;
    }

    public void setCheck(String check) {
        this.check = check;
    }

    public boolean isAgreeClause() {
        return agreeClause;
    }

    public void setAgreeClause(boolean agreeClause) {
        this.agreeClause = agreeClause;
    }
}
